package com.xyz.domain.ext;

public enum  EnumOperLogType {

    UDPUSER_COMPLETE_INFO("UDPUSER_COMPLETE_INFO","完善更人信息"),
    UDPUSER_WECHAT("UDPUSER_WECHAT","补充微信信息"),
    UDPUSER_BANKCARD("UDPUSER_BANKCARD","添加银行卡");

    private String name;
    private String key;

    EnumOperLogType(String key ,String name){
        this.key = key;
        this.name = name;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static EnumOperLogType getByKey(String key){
        for(EnumOperLogType type : EnumOperLogType.values()){
            if(type.getKey().equals(key)){
                return type;
            }
        }
        return null;
    }
}
